from flask import Flask, redirect

app = Flask(__name__)

with open("index.html","r") as f:
    main_webpage = f.read()

@app.route("/")
def hello_world():
    return main_webpage

import os

def red():
    return redirect("/")

@app.route("/organization")
def organinazion():
    os.system("bash copy_organization.sh")
    return red()

@app.route("/template")
def template():
    os.system("bash copy_template.sh")
    return red()

if __name__ == "__main__":
    app.run("0.0.0.0",8085)

